import { http } from '@/utils/http'

export interface IMgetASListByPage {
  listType: string
  pageNo: number
  pageSize: number
  asCode: string
  storeCode: string
}

export const getASListByPage = (data: IMgetASListByPage) => {
  return http.get('/jeecg-boot/htmmp/as/getASListByPage', data)
}

export const ASuploadFile = (data: any) => {
  console.log('uploadFile' + data)
  return http.post('/jeecg-boot/sys/common/upload', data)
}

export const AddAs = (data: any) => {
  return http.post('/jeecg-boot/htmmp/as/addAs', data)
}

export interface IMgetAsDetail {
  asCode: string
}
export const getAsDetail = (data: IMgetAsDetail) => {
  return http.get('/jeecg-boot/htmmp/as/getAsDetail', data)
}
export interface IMReturnAddress {
  storeCode: string
}

export const getReturnAddress = (data: IMReturnAddress) => {
  return http.get('/jeecg-boot/htmmp/as/getReturnAddress', data)
}
